﻿<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <meta charset="utf-8" />
    <script src="../0_System_file/js/jquery.min.js"></script>
    <script src="../0_System_file/js/jquery.easyui.min.js"></script>
    <script src="../0_System_file/js/validatebox.js"></script>
    <link href="../0_System_file/themes/default/easyui.css" rel="stylesheet" />
    <link href="../0_System_file/themes/icon.css" rel="stylesheet" />
    <link href="../0_System_file/themes/Site (1).css" rel="stylesheet" />
    <style type="text/css">
        #cc {
            width: auto;
            height: 400px;
            border: 1px solid blue;
        }
    </style>
    <script type="text/javascript">
        $(function(){
            $("#dg").datagrid({
                fitColumns: true,//真正的自动展开，适应网格宽度，防止水平滚动
                //toolbar: "#tb",
                pagination: true,//分页
                fit: true,//面板自适应父容器
                singleSelect: true,//只允许选择一行
                rownumbers: true,//显示一个行号列

                url: "/10_Json/datagrid_data1.json",
                method: "get",
                columns: [[
                      { field: "productid", title: "商铺ID", width: 100 },
                { field: "productname", title: "商铺名称", width: 100 },
                { field: "unitcost", title: "价格", width: 100 }
                ]]
            });
            //下拉框
            $('#cc').combo({
                required: true,
                editable: false
            });
            $('#sp').appendTo($('#cc').combo('panel'));
            $('#sp input').click(function () {
                var v = $(this).val();
                var s = $(this).next('span').text();
                $('#cc').combo('setValue', v).combo('setText', s).combo('hidePanel');
            })
            $("#btnUpdate").click(function(){
                var row = $("#dg").datagrid("getSelected");
                if (row != null) {
                    $("#dlg").dialog({ width: 400, height: 400 }).dialog("setTitle", "修改用户信息").dialog("open");
                    $("#frm1").attr("src", "01 Index.html");
                }
                else {
                    $.messager.alert("提示", "请选择需要编辑的行", "warning");
                }
            }
            )})
    </script>
</head>
<body>
    <fieldset style="border-color:dodgerblue;">
        <legend>查找会员</legend>
        <div id="tb" style="padding:5px;height:auto">
            <div>
                卡号/手机：<input class="easyui-validatebox" type="text" data-options="validType:'mobile'" />
                <a id="btn" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search'">查询</a><br /><br />
                会员姓名：<input id="txtU_Name" type="text" />
                当前等级：<select id="cc" style="width:100px;height:20px"></select>

                <div id="sp">

                    <div style="padding:10px">

                        <input type="radio" name="lang" value="01" /><span>普通会员</span><br />
                        <input type="radio" name="lang" value="02" /><span>银卡会员</span><br />
                        <input type="radio" name="lang" value="03" /><span>白卡会员</span><br />
                        <input type="radio" name="lang" value="04" /><span>金卡会员</span><br />
                    </div>
                </div><br /><br />
                当前积分：<input id="txtU_JF" type="text" />
                累积消费：￥
            </div>
    </fieldset>
    <div id="cc"><table id="dg"></table> </div>
</body>
</html>
